package com.xyb.dao;

import com.xyb.entity.CourseDoc;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 课程文档(CourseDoc)表数据库访问层
 *
 * @author makejava
 * @since 2021-11-15 14:18:12
 */
public interface CourseDocDao extends JpaRepository<CourseDoc, Long> {

    List<CourseDoc> findByCourseDetailIdAndStatusOrderByShowOrder(Long courseDetailId, Integer status);

    int deleteByCourseDetailIdAndStatus(Long courseDetailId, Integer status);
}